package cn.cmdr.mapper;

import cn.cmdr.pojo.RolePermission;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface RolePermissionMapper extends BaseMapper<RolePermission> {
    @Select("select perm_id from cmdr_role_permission where role_id = #{roleId}")
    List<Integer> getPerIdByRoleId(Integer roleId);
}
